<div class="container-fluid" style="margin-top: 10px;">
    <div class="row">
        <form id="landAlterForm" action="editLandAlter" method="post">
            <input hidden name="ALTER_NO" value="{$data.ALTER_NO}">
            {:form('text',['title'=>'变动单号','value'=>$data.ALTER_NO,'disable'=>'disabled'])}
            {:form('select',['title'=>'变动土地','name'=>'LAND_NO','value'=>$data.LAND_NO,'list'=>$landList,'key'=>'LAND_NO','field'=>'LAND_NAME'])}
            {:form('select',['title'=>'变动类型','name'=>'ALTER_TYPE_ID','list'=>$alterList,'value'=>$data.ALTER_TYPE_ID,'key'=>'ALTERTYPE_ID','field'=>'ALTERTYPE'])}
            {:line()}
            {:form('date',['title'=>'开始日期','name'=>'ALTER_DATE','value'=>$data.ALTER_DATE])}
            {:form('date',['title'=>'结束日期','name'=>'STOP_DATE','value'=>$data.STOP_DATE])}
            {:line()}
            {:form('text',['title'=>'变动数量','name'=>'RELEVANT_SIZE','value'=>$data.RELEVANT_SIZE])}
            {:form('text',['title'=>'所得收益','name'=>'ALL_FEE','value'=>$data.ALL_FEE])}
            {:form('text',['title'=>'经手人','name'=>'WORK_PERSON','value'=>$data.WORK_PERSON])}
            {:form('text',['title'=>'批准单位','name'=>'PASS_DEPART','value'=>$data.PASS_DEPART])}
            {:form('text',['title'=>'批准文号','name'=>'PASS_NO','value'=>$data.PASS_NO])}
            {:form('text',['title'=>'批准人','name'=>'PASS_PERSON','value'=>$data.PASS_PERSON])}
            {:form('text',['title'=>'收购单位','name'=>'RELEVANT_DEPART','value'=>$data.RELEVANT_DEPART,'col'=>'col-sm-12'])}
            {:form('text',['title'=>'备注','name'=>'REMARK','value'=>$data.REMARK,'col'=>'col-sm-12'])}
            {:line()}
            {:form('text',['title'=>'制单人','disable'=>'disabled','value'=>$data.USER_NAME])}
            {:form('text',['title'=>'制单时间','disable'=>'disabled','value'=>$data.OPER_DATE])}
            <div class="col-sm-12" style="margin-top: 10px;text-align: center">
                <button id="addButton" class="btn btn-info" type="button">保存</button>
                <button class="btn btn-default" type="reset">重置</button>
            </div>
        </form>
    </div>
</div>

<script>

    $(function () {

        $("#addButton").on('click',function () {
            layer.confirm('确认修改土地变动吗？',{icon:3},function (index) {
                layer.close(index);
                ajaxSubmit($("#landAlterForm"),function (data) {
                    parent.refreshTable();
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                });
            });
        });

    });

</script>